

<form class="form-horizontal" id="attrToObjectDialog_form" method="post" action="<?=base_url('object_attributes/submit_post')?>" name="attrToObjectDialog_form">

    <input type="hidden" value="NEW" name="post_action">
    <input type="hidden" value="<?=$type?>" name="attrToObjectDialog_type" id="attrToObjectDialog_type">
    <input type="hidden" value="1" name="attrToObjectDialog_custom" id="attrToObjectDialog_custom">

    <fieldset>

        <div class="group">

            <span class="group-title">SELECT ATTRIBUTES</span>             

            <div class="control-group">

                <label class="control-label smaller">Attribute:</label>

                <div class="controls docs-input-sizes">

                    <select class="span3" name="attrToObjectDialog_attributes_ID" id="attrToObjectDialog_attributes_ID" tabindex="1">

                        <option value="0">--Please Select</option>
                        <?foreach ($attributes as $attribute) :?>

                            <option value="<?=$attribute['ID']?>"><?=$attribute['name']?></option>

                            <?endforeach;?>

                    </select>

                    <a class="btn btn-mini" title="Add Attribute" onclick="newAttributeDialog(base_url+'attributes/view_new/1');return false;"><i class="icon-plus"></i></a>

                </div>

                <br />

                <?=info('From drop down list, select an attribute you want to add to the group,  and click on Save changes. To enter a new attribute, click on the plus icon next to the search box.')?>

            </div>

        </div>

        <div id="attrToObjectDialog_status_info" class="status_info"></div> 

    </fieldset>

</form>
